/**
 * 
 */
package com.peter.store.idea;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.peter.data.entity.Idea;
import com.peter.data.entity.IdeaTag;

/**
 * @author peter
 *
 */
@RepositoryRestResource(collectionResourceRel = "tag", path = "tag")
public interface TagRepository extends PagingAndSortingRepository<IdeaTag, Long> {
    List<Idea> findByName(@Param("name") String name);
}
